<template>
	<view class="about-us app-about-top">
		<view class="p-title">平台介绍&相关协议</view>
		<view class="content">
			<view class="content-top">
				<image v-if="appType == 0" src="../../static/images/icon/zuji.png" class="pic"></image>
				<image v-else-if="appType == 1" src="../../static/images/icon/zuji1.png" class="pic"></image>
				<image v-else-if="appType == 2" src="../../static/images/icon/zuji2.png" class="pic"></image>
				<view class="section-header app-font-color">直租侠</view>
				<view class="slogan">
					<view class="text-L app-font-color">抢先体验</view>
					<view class="line app-bac-color"></view>
					<view class="text-R app-font-color">立享新品</view>
				</view>
				<view class="version">当前版本：V1.01</view>
			</view>
			<view class="content-btm">
				<view class="item" @click="goAboutUs">
					<view class="item-text">关于我们</view>
					<text class="iconfont icon-xiangyou"></text>
				</view>
				<view class="item" @click="privacy('privacy')">
					<view class="item-text">用户隐私协议</view>
					<text class="iconfont icon-xiangyou"></text>
				</view>
				<view class="item" @click="privacy('cancel')">
					<view class="item-text">租赁服务协议</view>
					<text class="iconfont icon-xiangyou"></text>
				</view>
				<view class="item" @click="privacy('user')">
					<view class="item-text">e签宝授权协议</view>
					<text class="iconfont icon-xiangyou"></text>
				</view>
				<view class="item" @click="toOverdue()">
					<view class="item-text">征信授权书</view>
					<text class="iconfont icon-xiangyou"></text>
				</view>
			</view>
		</view>
	</view>
	
</template>

<script>
	import {
		HTTP_REQUEST_URL
	} from '@/config/app';
	let app = getApp();
	export default {
		data() {
			return {
				appType: app.globalData.appType,
			}
		},
		methods: {
			toOverdue() {
				const url = HTTP_REQUEST_URL + '/zxsqs.html'
				uni.navigateTo({
					url: `/pages/annex/web_view/index?url=${url}`
				});
			},
			goAboutUs() {
				uni.navigateTo({
					url: '/pages/lease/about-us-detail'
				})
			},
			privacy(type) {
				uni.navigateTo({
					url: "/pages/users/privacy/index?type=" + type
				})
			}
		}
	}
</script>

<style lang="scss">
	.about-us {
		background-image: url('https://wap.yqjy8.vip/uploads/attach/2023/05/20230517/15a4a823fef63bfa3888b76c56b72031.jpg');
		background-repeat: no-repeat;
		background-size: 100%;
		padding: 0 24rpx 100rpx 24rpx;
		background-color: #F5F7FA;
		
		.p-title {
			text-align: center;
			padding: 48rpx 0;
			font-size: 48rpx;
			font-weight: bold;
			color: #ffffff;
		}
		
		.content {
			margin: 24rpx;
			text-align: center;
			padding: 0 34rpx 0 24rpx;
			background: #FFFFFF;
			border-radius: 16rpx;
			
			.content-top {
				padding: 48rpx 0;
				border-bottom: 2rpx solid #F5F5F5;
				
				.pic {
					width: 160rpx;
					height: 160rpx;
					
				}
				
				.section-header {
					margin-top: 24rpx;
					font-size: 40rpx;
					font-weight: bold;
					color: #39CCC2;
				}
				
				.slogan {
					margin: 16rpx 0;
					display: flex;
					color: #39CCC2;
					font-size: 28rpx;
					align-items: center;
					justify-content: center;
					
					.line {
						width: 2rpx;
						height: 24rpx;
						background: #39CCC2;
						margin: 0 16rpx;
					}
				}
				
				.version {
					font-size: 24rpx;
					color: #999999;
				}
			}
			
			.content-btm {
				padding-top: 48rpx;
				
				.item {
					display: flex;
					justify-content: space-between;
					padding-bottom: 48rpx;
					align-items: center;
					
					.item-text {
						font-size: 28rpx;
						color: #1F1F1F;
					}
					
					.icon-xiangyou {
						font-size: 24rpx;
					}
				}
			}
		}
	}
	
</style>